package com.antu.first.service;

import com.antu.first.bean.Swiper;
import com.antu.first.dto.ImageHolder;
import com.antu.first.dto.SwiperOperationExecution;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018/3/6.
 */
public interface SwiperService {
    SwiperOperationExecution batchInsertSwiper(List<Swiper> swiperList, List<ImageHolder> swiperImgList);

    Map<String,Object> updateSwiperById(Swiper swiper);

    Map<String,Object> allSwiperByHotelId(Swiper swiper,Integer currentPage,Integer pageSize);

    Map<String,Object> toPromoteSwiper(Integer swStatus);



    /**
     * 商家批量删除轮播图
     * @param list
     * @return
     */
    Map<String,Object> deleteSwiperById(List<Swiper> list);

    /**
     * 修改轮播图信息
     * @param swiper
     * @param swiperImg
     * @return
     */
    SwiperOperationExecution updateSwiper(Swiper swiper, ImageHolder swiperImg);
    /**
     * 按照轮播图ID查询轮播图
     * @param swiperId
     * @return
     */
    Map<String,Object> selectOneSwiperById(int swiperId);
}
